//-------------------------------------------------------------------
//	Copyright (c) 2012-2014 Zhirnov Andrey
//	This file is part of the "UXGEN-ES" project.
//	See copyright notice in "Engine.h".
//-------------------------------------------------------------------
/*
	example of activity class
*/

package uxgenes.app;

import uxgenes.core.Logger;



//
// Activity
//

public class MainActivity	extends uxgenes.view.UXActivity
{
	static {
		System.loadLibrary("UXGENES");
	}
	
	
// constants //
	private static final String		TAG = "MainActivity";
	
	
// variables //

	

// Activity //

	// onCreate
	@Override protected
	void onCreate (android.os.Bundle savedInstanceState)
	{
		super.onCreate( savedInstanceState );
		
		android.view.ViewGroup	rootView = null;
		rootView = (android.view.ViewGroup) Inflate( R.layout.main );
		
		
		/* #ifdef ADMOB
		// banner
		uxgenes.ext.ads.AdMobBanner	banner = new uxgenes.ext.ads.AdMobBanner( this );
		banner.InitBanner( rootView, R.id.adView );
		engine.AddExtension( banner );
		
		// interstitial
		uxgenes.ext.ads.AdMobInterstitial interstitial =
			new uxgenes.ext.ads.AdMobInterstitial( this, getString( R.string.admob_interstitial_id ) );
		interstitial.InitInterstitial();
		engine.AddExtension( interstitial );
		#endif ADMOB //*/
		
		
		SetWakeLock( true );
	    engine.InitEngine( false );
	    engine.CreateEngine( rootView, R.id.openglSurface );
	    setContentView( engine.GetRootView() );
	}

}
